#
# makefile
#
CC = gcc
CFLAGS = -m64 -pthread -Wno-format-overflow

#SRCS = $(wildcard tiny.*.c)
#PROGS = $(patsubst %.c,%,$(SRCS))
#PROGS_TEST = $(patsubst %.c,%.test,$(SRCS))

all: tinyHttp
	(cd cgi-bin; make)

%: %.c
	$(CC) $(CFLAGS) -o $@ $< csapp.c

.PHONY : clean
clean:
	(cd cgi-bin; make clean)
	find . -type f -executable -print0 | xargs -0 rm -f --
